<?php
/**
 *  💡 免责声明：本软件不得用于商业用途，仅做学习交流
 *  ⚠️ 权利声明：本软件由版权人提供产品技术支持
 *  📅 项目编号：NX2025-0135
 */
namespace App\Providers;

use App\Models\DividendPool;
use App\Models\PointAccount;
use App\Models\User;
use App\Models\UserAddress;
use App\Models\UserBankCard;
use App\Observers\DividendPoolObserver;
use App\Observers\PointAccountObserver;
use App\Observers\UserAddressObserver;
use App\Observers\UserBankCardObserver;
use App\Observers\UserObserver;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     */
    public function register()
    {
        schema::defaultStringLength(191);
    }

    /**
     * Bootstrap any application services.
     */
    public function boot()
    {
        User::observe(UserObserver::class);
//        DividendPool::observe(DividendPoolObserver::class);
        UserAddress::observe(UserAddressObserver::class);
        PointAccount::observe(PointAccountObserver::class);
        UserBankCard::observe(UserBankCardObserver::class);
    }
}
